import request from '@/utils/request'

/**
 * 获取收藏
 * @param page{Integer}
 * @param pageSize{Integer}
 * @param collectType{Integer}
 * @returns {*|AxiosPromise}
 */
export const findCollect = ({
  page,
  pageSize = 10,
  collectType = 1
}) => {
  return request('/member/collect', 'get', {
    page,
    pageSize,
    collectType
  })
}

/**
 * 获取我的足迹
 * @param page {Integer}
 * @param pageSize{Integer}
 * @returns {*|AxiosPromise}
 */
export const findBrowseHistory = ({
  page,
  pageSize = 10
}) => {
  return request('/member/browseHistory', 'get', {
    page,
    pageSize
  })
}
